home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3c / ttyslot.z / ttyslot
Encoding:
Text File  |  1998-10-20  |  2.1 KB  |  66 lines

  1.  
  2.  
  3.  
  4. ttttttttyyyyssssllllooootttt((((3333CCCC))))                                                        ttttttttyyyyssssllllooootttt((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _tttt_tttt_yyyy_ssss_llll_oooo_tttt - find the slot in the utmp file of the current user
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_tttt_dddd_llll_iiii_bbbb_...._hhhh_>>>>
  13.      _iiii_nnnn_tttt _tttt_tttt_yyyy_ssss_llll_oooo_tttt _((((_vvvv_oooo_iiii_dddd_))))_;;;;
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      _tttt_tttt_yyyy_ssss_llll_oooo_tttt returns the index of the current user's entry in the
  17.      _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_uuuu_tttt_mmmm_pppp file.  This is accomplished by calling _t_t_y_n_a_m_e(3C) to
  18.      determine which device the calling program has associated with the
  19.      standard input, the standard output, or the error output (0, 1 or 2).
  20.      This device name is then searched for in the ////vvvvaaaarrrr////aaaaddddmmmm////uuuuttttmmmmpppp file.
  21.  
  22. FFFFIIIILLLLEEEESSSS
  23.      _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_uuuu_tttt_mmmm_pppp
  24.  
  25. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  26.      _gggg_eeee_tttt_uuuu_tttt(3C), _tttt_tttt_yyyy_nnnn_aaaa_mmmm_eeee(3C)
  27.  
  28. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  29.      A value of -1 is returned if an error was encountered while searching for
  30.      the terminal name or if none of the above file descriptors are associated
  31.      with a terminal device.
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                                                         PPPPaaaaggggeeee 1111
  62.  
  63.  
  64.  
  65.